package com.siashan.toolkit.sms.yunpian;

import com.siashan.toolkit.sms.core.entity.SmsFrequencyLimitConfig;
import com.siashan.toolkit.sms.core.entity.SmsTemplate;
import com.siashan.toolkit.sms.core.entity.SmsWhiteList;
import com.siashan.toolkit.sms.yunpian.core.YunpianSmsConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 云片短信配置
 *
 * @author siashan
 * @since v1.0.1
 */
@Data
@ConfigurationProperties(prefix = YunpianSmsProperties.PREFIX)
public class YunpianSmsProperties {

    public static final String PREFIX = "siashan.sms.yunpian";

    /**
     * 阿里云短信配置
     */
    private YunpianSmsConfig config;

    /**
     * 模板
     */
    private List<SmsTemplate> tmpls;

    /**
     * 白名单
     */
    private SmsWhiteList whiteList;

    /**
     * 发送频率限制
     */
    private SmsFrequencyLimitConfig frequencyLimit;

}
